const app = getApp()
Page({
  data: {
    orderList: [],
  },
  onLoad: function (options) {
    this.getOrder();
  },
  async getOrder() {
    const res = await app.request({
      url: 'getOrder', method: "POST", data: {seller_openid: app.openid }
    })
    if (res.meta.status >= 300) return wx.showToast({ title: "没有订单呢", icon: 'error' });
    wx.hideNavigationBarLoading();
    wx.stopPullDownRefresh();
    this.setData({ orderList: res.data.order })
  },
})